package abstracttest;

import com.example.pojo.SystemMenu;
import com.example.service.SystemMenuService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class AbstractSystemMenu extends AbstractBase {
    @Autowired
    private SystemMenuService systemMenuService;

    @Test
    public void test1(){
        SystemMenu systemMenu=systemMenuService.findOne(1);
        List<SystemMenu> systemMenus=new ArrayList<SystemMenu>();
        List<SystemMenu> systemMenuList=systemMenuService.getChildrens(systemMenu,systemMenus);
    }

    @Test
    public void test2(){
        List<Map<String,Object>> systemMenus=systemMenuService.findAll();
    }

    @Test
    public void test3(){
//        systemMenuService.del();
    }
}
